package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.CheckRecordService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/checkRecord")
public class CheckRecordController {
    @Reference
    private CheckRecordService checkRecordService;
    @RequestMapping("/findAll")
    public Result findAll(String startDate,String endDate){
        return checkRecordService.findAll(startDate,endDate);
    }
    /*
    * 查询预约详情
    * */
    @RequestMapping("/findById")
    public Result findById(int id){
        //根据预约id查询数据
        return checkRecordService.findById(id);
    }

}
